package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Table(name = "mall_product_plan_item")
public class MallProductPlanItem {
    @Id
    @Column(name = "plan_item_id")
    private Integer planItemId;

    /**
     * 计划编号
     */
    @Column(name = "plan_no")
    private Long planNo;

    @Column(name = "product_id")
    private Integer productId;

    @Column(name = "grade")
    private String grade;

    private BigDecimal amount;

    @Column(name = "residual_quantity")
    private BigDecimal residualQuantity;


    public MallProductPlanItem(Integer planItemId, Long planNo, Integer productId, String grade, BigDecimal amount) {
        this.planItemId = planItemId;
        this.planNo = planNo;
        this.productId = productId;
        this.grade = grade;
        this.amount = amount;
    }

    public MallProductPlanItem() {
    }
}